package com.marchsoft.musicalstore.util;
/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 源
 * Date: 2019-11-17
 * Time: 11:22
 */
public class RequestToJson<T> {
    //0代表成功1代表失败
    private int code;
    private String message;
    //返回的数据
    private T data;

    public RequestToJson(int code, String message, T data) {
        this.code = code;
        this.message = message;
        this.data = data;
    }

    public RequestToJson(int code, String message) {
        this.code = code;
        this.message = message;
    }



    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }

}
